import requests

if __name__ == "__main__":
    kw = {"w": "python"}

    headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"}
    response = requests.get("https://www.w3cschool.cn/search/", params=kw, headers=headers)
    print(response.status_code)
    print(response.encoding)
    print(response.url)
    print(response.text)
